package com.example.ythhome.busi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用于系统账号登录注册
 * @TableName t_busi_code
 */
@TableName(value ="t_busi_code")
@Data
public class BusiCode implements Serializable {
    /**
     * 
     */
    @TableField(value = "id")
    private Integer id;

    /**
     * 
     */
    @TableField(value = "busi_type")
    private String busiType;

    /**
     * 
     */
    @TableField(value = "busi_name")
    private String busiName;

    /**
     * 
     */
    @TableField(value = "start")
    private Integer start;

    /**
     * 
     */
    @TableField(value = "length")
    private String length;

    /**
     * 
     */
    @TableField(value = "prefix")
    private String prefix;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "create_author")
    private String createAuthor;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 
     */
    @TableField(value = "update_author")
    private String updateAuthor;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusiCode other = (BusiCode) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBusiType() == null ? other.getBusiType() == null : this.getBusiType().equals(other.getBusiType()))
            && (this.getBusiName() == null ? other.getBusiName() == null : this.getBusiName().equals(other.getBusiName()))
            && (this.getStart() == null ? other.getStart() == null : this.getStart().equals(other.getStart()))
            && (this.getLength() == null ? other.getLength() == null : this.getLength().equals(other.getLength()))
            && (this.getPrefix() == null ? other.getPrefix() == null : this.getPrefix().equals(other.getPrefix()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateAuthor() == null ? other.getCreateAuthor() == null : this.getCreateAuthor().equals(other.getCreateAuthor()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateAuthor() == null ? other.getUpdateAuthor() == null : this.getUpdateAuthor().equals(other.getUpdateAuthor()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBusiType() == null) ? 0 : getBusiType().hashCode());
        result = prime * result + ((getBusiName() == null) ? 0 : getBusiName().hashCode());
        result = prime * result + ((getStart() == null) ? 0 : getStart().hashCode());
        result = prime * result + ((getLength() == null) ? 0 : getLength().hashCode());
        result = prime * result + ((getPrefix() == null) ? 0 : getPrefix().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateAuthor() == null) ? 0 : getCreateAuthor().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateAuthor() == null) ? 0 : getUpdateAuthor().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", busiType=").append(busiType);
        sb.append(", busiName=").append(busiName);
        sb.append(", start=").append(start);
        sb.append(", length=").append(length);
        sb.append(", prefix=").append(prefix);
        sb.append(", createTime=").append(createTime);
        sb.append(", createAuthor=").append(createAuthor);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateAuthor=").append(updateAuthor);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}